package com.demo.react.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.demo.react.entity.Token;
@Repository
public interface TokenRepository extends CrudRepository<Token, Long> {

	@Query("select t.tokenValue from Token t where t.author=:author")
	String getTokenByAuthor(String autohr);

	@SuppressWarnings("unchecked")
	Token save(Token token);
}
